
module Fetch(clock, reset, ex_if_stall, fw_if_id_stall, if_id_proximopc, if_id_instrucao, id_if_selfontepc, id_if_rega, id_if_pcimd2ext, id_if_pcindex, id_if_seltipopc, if_mc_en, if_mc_addr, mc_if_data);

	input				clock;
	input				reset;
	
	// Execute
	input				ex_if_stall;
	
	// Forwarding
	input				fw_if_id_stall;
	
	// Decode
	output		[31:0]	if_id_proximopc;
	output		[31:0]	if_id_instrucao;
	input				id_if_selfontepc;
	input		[31:0]	id_if_rega;
	input		[31:0]	id_if_pcimd2ext;
	input		[31:0]	id_if_pcindex;
	input		[1:0]	id_if_seltipopc;
	
	// Memory Controller
	output				if_mc_en;
	output		[31:0]	if_mc_addr;
	input		[31:0]	mc_if_data;
	
	...
	
endmodule



